package elcom.model.data;

import java.util.Iterator;
import java.util.LinkedList;

public class QueueIO<T> extends LinkedList<T>{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	public QueueIO() {
	}

	public synchronized boolean addD(T t) {
		Iterator<T> ite = this.iterator();
		while (ite.hasNext()) {
			T a = ite.next();
			if (a.equals(t)) {
				return false;
			}
		}
		super.addLast(t);
		return true;
	}
	
	public synchronized void addLast(T e) {
		super.addLast(e);
	};
	
	@Override
	public synchronized boolean remove(Object o) {
		return super.remove(o);
	}

	@Override
	public synchronized int size() {
		return super.size();
	}
	
}
